home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / doc / readcd.man < prev    next >
Encoding:
Text File  |  2000-04-23  |  12.2 KB  |  331 lines

  1.  
  2.  
  3.  
  4. READCD(1)            Schily's USER COMMANDS             READCD(1)
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      readcd - read or write data Compact Discs
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      rrrreeeeaaaaddddccccdddd ddddeeeevvvv====_d_e_v_i_c_e [ _o_p_t_i_o_n_s ]
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      RRRReeeeaaaaddddccccdddd is used to read or write Compact Discs.
  17.  
  18.      The _d_e_v_i_c_e refers to _s_c_s_i_b_u_s/_t_a_r_g_e_t/_l_u_n of the  drive.  Com-
  19.      munication  on  _S_u_n_O_S  is  done with the SCSI general driver
  20.      ssssccccgggg.... Other operating systems are using a library  simulation
  21.      of    this    driver.     Possible    syntax    is:     ddddeeeevvvv====
  22.      _s_c_s_i_b_u_s,_t_a_r_g_e_t,_l_u_n or ddddeeeevvvv==== _t_a_r_g_e_t,_l_u_n.  In the latter  case,
  23.      the drive has to be connected to the default SCSI bus of the
  24.      machine.  _S_c_s_i_b_u_s, _t_a_r_g_e_t and _l_u_n are integer numbers.  Some
  25.      operating  systems  or  SCSI  transport  implementations may
  26.      require to specify a filename in addition.  In this case the
  27.      corect     syntax     for     the     device    is:     ddddeeeevvvv====
  28.      _d_e_v_i_c_e_n_a_m_e:_s_c_s_i_b_u_s,_t_a_r_g_e_t,  or  ddddeeeevvvv====  _d_e_v_i_c_e_n_a_m_e:_t_a_r_g_e_t,_l_u_n.
  29.      If  the  name  of the device node that has been specified on
  30.      such a system referres to exactly one SCSI device, a  short-
  31.      hand  in the form ddddeeeevvvv==== _d_e_v_i_c_e_n_a_m_e:@ or ddddeeeevvvv==== _d_e_v_i_c_e_n_a_m_e:@,_l_u_n
  32.      may be used instead of ddddeeeevvvv==== _d_e_v_i_c_e_n_a_m_e:_s_c_s_i_b_u_s,_t_a_r_g_e_t,
  33.  
  34.  
  35.      To make rrrreeeeaaaaddddccccdddd portable to all UNIX  platforms,  the  syntax
  36.      ddddeeeevvvv====  _d_e_v_i_c_e_n_a_m_e:_s_c_s_i_b_u_s,_t_a_r_g_e_t, is preferred as is hides OS
  37.      specific knowledge about device  names  from  the  user.   A
  38.      specific  OS must not necessarily support a way to specify a
  39.      real   device   file   name   nor   a   way    to    specify
  40.      _s_c_s_i_b_u_s,_t_a_r_g_e_t,_l_u_n.
  41.  
  42.  
  43.      _S_c_s_i_b_u_s 0 is the default SCSI bus on the machine. Watch  the
  44.      boot   messages   for   more   information   or   look  into
  45.      ////vvvvaaaarrrr////aaaaddddmmmm////mmmmeeeessssssssaaaaggggeeeessss for more information about the SCSI confi-
  46.      guration  of  your  machine.  If you have problems to figure
  47.      out what values for _s_c_s_i_b_u_s,_t_a_r_g_e_t,_l_u_n should be  used,  try
  48.      the ----ssssccccaaaannnnbbbbuuuussss option of ccccddddrrrreeeeccccoooorrrrdddd.
  49.  
  50.  
  51. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  52.      If no options except the _d_e_v= option  have  been  specified,
  53.      rrrreeeeaaaaddddccccdddd  goes  into intercative mode.  Select a primary func-
  54.      tion and then follow the instructions.
  55.  
  56.      ----vvvveeeerrrrssssiiiioooonnnn
  57.           Print version information and exit.
  58.  
  59.      ----vvvv    Increment the level of general verbosity by one.
  60.  
  61.  
  62.  
  63. Joerg Schilling    Last change: Version 1.8.1                   1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. READCD(1)            Schily's USER COMMANDS             READCD(1)
  71.  
  72.  
  73.  
  74.      ----VVVV    Increment the verbose level in respect of SCSI command
  75.           transport  by one.  This helps to debug problems during
  76.           the writing process, that occur in the drive.   If  you
  77.           get incomprehensible error messages you should use this
  78.           flag to get more detailed output.  ----VVVVVVVV will  show  data
  79.           buffer content in addition.  Using ----VVVV or ----VVVVVVVV slows down
  80.           the process and may be the reason for a  buffer  under-
  81.           run.
  82.  
  83.      ----wwww    Switch to write mode. If this option is  not  present,
  84.           rrrreeeeaaaaddddccccdddd reads from the specified device.
  85.  
  86.      sssseeeeccccttttoooorrrrssss====_r_a_n_g_e
  87.           Specify a sector range that should be read.  The  range
  88.           is  specified  by  the  starting sector number, a minus
  89.           sign and the ending sector number.
  90.  
  91.  
  92. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  93.      For all examples below, it will be assumed that the drive is
  94.      connected  to  the primary SCSI bus of the machine. The SCSI
  95.      target id is set to 2.
  96.  
  97.      To read the complete media from a CD-ROM writing the data to
  98.      the file _c_d_i_m_a_g_e._r_a_w:
  99.  
  100.          readcd dev=2,0 f=cdimage.raw
  101.  
  102.      To read sectors from range 150 ... 10000 from a CD-ROM writ-
  103.      ing the data to the file _c_d_i_m_a_g_e._r_a_w:
  104.  
  105.          readcd dev=2,0 sectors=150-10000 f=cdimage.raw
  106.  
  107.      To write the data from the file _c_d_i_m_a_g_e._r_a_w (e.g. a filesys-
  108.      tem image from mmmmkkkkiiiissssooooffffssss) to a DVD-RAM, call:
  109.  
  110.          readcd dev=2,0 -w f=cdimage.raw
  111.  
  112.  
  113. FFFFIIIILLLLEEEESSSS
  114. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  115.      ccccddddrrrreeeeccccoooorrrrdddd(1), mmmmkkkkiiiissssooooffffssss(1), ssssccccgggg(7), ffffbbbbkkkk(7).
  116.  
  117.  
  118. NNNNOOOOTTTTEEEESSSS
  119.      If you don't want to allow users to become root on your sys-
  120.      tem,  rrrreeeeaaaaddddccccdddd  may safely be installed suid root. This allows
  121.      all users or a group of users with no root privileges to use
  122.      rrrreeeeaaaaddddccccdddd.... RRRReeeeaaaaddddccccdddd in this case will only allow access to CD-ROM
  123.      type drives- To give all user access to use rrrreeeeaaaaddddccccdddd,,,, enter:
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Joerg Schilling    Last change: Version 1.8.1                   2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. READCD(1)            Schily's USER COMMANDS             READCD(1)
  137.  
  138.  
  139.  
  140.           chown root /usr/local/bin/readcd
  141.           chmod 4711 /usr/local/bin/readcd
  142.  
  143.      To give a restricted group of users access to rrrreeeeaaaaddddccccdddd enter:
  144.  
  145.           chown root /usr/local/bin/readcd
  146.           chgrp cdburners /usr/local/bin/readcd
  147.           chmod 4710 /usr/local/bin/readcd
  148.  
  149.      and add a group _c_d_b_u_r_n_e_r_s on your system.
  150.  
  151.      Never give write permissions  for  non  root  users  to  the
  152.      /_d_e_v/_s_c_g?   devices   unless  you  would  allow  anybody  to
  153.      read/write/format all your disks.
  154.  
  155.      You should not  connect  old  drives  that  do  not  support
  156.      disconnect/reconnect  to  either  the  SCSI bus that is con-
  157.      nected to the CD-Recorder or the source disk.
  158.  
  159.      When using rrrreeeeaaaaddddccccdddd with the broken LLLLiiiinnnnuuuuxxxx SSSSCCCCSSSSIIII ggggeeeennnneeeerrrriiiicccc ddddrrrriiiivvvveeeerrrr....
  160.      You  should note that rrrreeeeaaaaddddccccdddd uses a hack, that tries to emu-
  161.      late the functionality of the  scg  driver.   Unfortunately,
  162.      the sg driver on LLLLiiiinnnnuuuuxxxx has several severe bugs:
  163.  
  164.      +o     It cannot see if a SCSI command could not be  sent  at
  165.           all.
  166.  
  167.      +o     It cannot get the SCSI status byte.  RRRReeeeaaaaddddccccdddd  for  that
  168.           reason  cannot  report  failing  SCSI  commands in some
  169.           situations.
  170.  
  171.      +o     It cannot get real DMA count of transfer. RRRReeeeaaaaddddccccdddd  can-
  172.           not tell you if there is an DMA residual count.
  173.  
  174.      +o     It cannot get number of  bytes  valid  in  auto  sense
  175.           data.   RRRReeeeaaaaddddccccdddd  cannot  tell you if device transfers no
  176.           sense data at all.
  177.  
  178.       +o     It  fetches  to  few  data  in  auto  request   sense
  179.           (CCS/SCSI-2/SCSI-3 needs >= 18).
  180.  
  181.  
  182. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  183.      A typical error message for a SCSI command looks like:
  184.  
  185.           readcd: I/O error. test unit ready: scsi sendcmd: no error
  186.           CDB:  00 20 00 00 00 00
  187.           status: 0x2 (CHECK CONDITION)
  188.           Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 25 00 00 00 00 00
  189.           Sense Key: 0x5 Illegal Request, Segment 0
  190.           Sense Code: 0x25 Qual 0x00 (logical unit not supported) Fru 0x0
  191.           Sense flags: Blk 0 (not valid)
  192.  
  193.  
  194.  
  195. Joerg Schilling    Last change: Version 1.8.1                   3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. READCD(1)            Schily's USER COMMANDS             READCD(1)
  203.  
  204.  
  205.  
  206.      The first line gives information about the transport of  the
  207.      command.   The  text  after  the first colon gives the error
  208.      text for the system call from the view  of  the  kernel.  It
  209.      usually  is:   IIII////OOOO  eeeerrrrrrrroooorrrr  unless other problems happen. The
  210.      next words contain a short description for the SCSI  command
  211.      that fails. The rest of the line tells you if there were any
  212.      problems for the transport of the command over the SCSI bus.
  213.      ffffaaaattttaaaallll  eeeerrrrrrrroooorrrr means that it was not possible to transport the
  214.      command (i.e.  no  device  present  at  the  requested  SCSI
  215.      address).
  216.  
  217.      The second line prints the SCSI command descriptor block for
  218.      the failed command.
  219.  
  220.      The third line gives information on  the  SCSI  status  code
  221.      returned  by  the  command,  if the transport of the command
  222.      succeeds. This is error information from the SCSI device.
  223.  
  224.      The fourth line is a hex dump  of  the  auto  request  sense
  225.      information for the command.
  226.  
  227.      The fifth line is the error text for the sense key if avail-
  228.      able,  followed  by the segment number that is only valid if
  229.      the command was a _c_o_p_y command. If the error message is  not
  230.      directly  related  to the current command, the text _d_e_f_e_r_r_e_d
  231.      _e_r_r_o_r is appended.
  232.  
  233.      The sixth line is the error text for the sense code and  the
  234.      sense  qualifier if available.  If the type of the device is
  235.      known, the sense data is decoded from tables in _s_c_s_i_e_r_r_s._c .
  236.      The text is followed by the error value for a field replace-
  237.      able unit.
  238.  
  239.      The seventh line prints the block number that is related  to
  240.      the  failed  command  and  text for several error flags. The
  241.      block number may not be valid.
  242.  
  243.  
  244. BBBBUUUUGGGGSSSS
  245. CCCCRRRREEEEDDDDIIIITTTTSSSS
  246. MMMMAAAAIIIILLLLIIIINNNNGGGG LLLLIIIISSSSTTTTSSSS
  247.      If you want to actively take  part  on  the  development  of
  248.      cdrecord, you may join the cdwriting mailing list by sending
  249.      mail to:
  250.  
  251.           other-cdwrite-request@lists.debian.org
  252.  
  253.      and include the  word  _s_u_b_s_c_r_i_b_e  in  the  body.   The  mail
  254.      address of the list is:
  255.  
  256.           cdwrite@lists.debian.org
  257.  
  258.  
  259.  
  260.  
  261. Joerg Schilling    Last change: Version 1.8.1                   4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. READCD(1)            Schily's USER COMMANDS             READCD(1)
  269.  
  270.  
  271.  
  272. AAAAUUUUTTTTHHHHOOOORRRR
  273.      Joerg Schilling
  274.      Seestr. 110
  275.      D-13353 Berlin
  276.      Germany
  277.  
  278.      Additional information can be found on:
  279.      http://www.fokus.gmd.de/usr/schilling/cdrecord.html
  280.  
  281.      Mail bugs and suggestions to:
  282.  
  283.      jjjjooooeeeerrrrgggg@@@@sssscccchhhhiiiillllyyyy....iiiissssddddnnnn....ccccssss....ttttuuuu----bbbbeeeerrrrlllliiiinnnn....ddddeeee or  jjjjssss@@@@ccccssss....ttttuuuu----bbbbeeeerrrrlllliiiinnnn....ddddeeee  or
  284.      sssscccchhhhiiiilllllllliiiinnnngggg@@@@ffffooookkkkuuuussss....ggggmmmmdddd....ddddeeee
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327. Joerg Schilling    Last change: Version 1.8.1                   5
  328.  
  329.  
  330.  
  331.